<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--

	Nonzero1.0 by nodethirtythree design
	http://www.nodethirtythree.com
	missing in a maze

-->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>${companyName} - Powered by Carrello</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" type="text/css" title="Blue" href="/Carrello/css/style.css" />
<link rel="stylesheet" type="text/css" href="/Carrello/css/jquery.treeview.css" />
<script type="text/javascript" src="/Carrello/js/jquery-1.7.js"></script>
<script type="text/javascript" src="/Carrello/js/jquery.treeview.js"></script>
</script>
</head>
<body>
<#if sessionIsLoggedIn == true>
<#if sessionRole == "admin" || sessionRole="manager">
<!-- These buttons are only visible to admin and manager roles //-->
<div id="panel">
    <ul id="mainpanel">
        <#if sessionRole == "admin">
        <!-- Admin buttons only visible to admin role //-->
        <li><strong>ADMIN:</strong></li>
        <li><a href="/Carrello/updateCategory.action">edit Category</a></li>
        <li><a href="/Carrello/addproduct.action">Add Product</a></li>
        <li><a href="/Carrello/manageusers.action">Manage Users</a></li>
        <li><a href="/Carrello/updatecompanyinfo.action">Company Settings</a></li>
        </#if>
        <li><strong>MANAGER:</strong></li>
        <li><a href="/Carrello/viewsales.action">Sales Report</a></li>
        <li><a href="/Carrello/viewinventory.action">Inventory Report</a></li>
    </ul>
</div>
</#if>
</#if>

<div id="header">

	<div id="header_inner" class="fluid">

		<div id="logo">
			<h1><a href="/Carrello/"><span>${companyName}</span> 0.1</a></h1>
			<h2>Powered by Carrello (CSCI 6050 - Fall 2011 - Team 3)</h2>
		</div>
		
		<div id="menu">
			<ul>    
                                <li class="search">
                                    <form action="searchProduct.action" method="POST">
                                    <strong>Search:</strong>
                                    <input type="text" name="keyword" />
                                    <input type="submit" value="Search" /> 
                                    </form>
                                </li>
				<li><a href="/Carrello/home.action" <#if actionName == "home">class="active"</#if>>Main</a></li>
				<#if sessionIsLoggedIn == true>

                                <li><a href="/Carrello/account.action" <#if actionName == "account">class="active"</#if>>My Account</a></li>
                                <li><a href="/Carrello/cart.action" <#if actionName == "cart">class="active"</#if>>Shopping Cart (${cartCount!""})</a></li>
                                <li><a href="/Carrello/logout.action" <#if actionName == "logout">class="active"</#if>>Logout</a></li>
                                <#else>
                                <li><a href="/Carrello/login.action" <#if actionName == "login">class="active"</#if>>Login</a></li>
                                <li><a href="/Carrello/signup.action" <#if actionName == "signup">class="active"</#if>>Sign Up</a></li>
                                </#if>
			</ul>
		</div>
		
	</div>
</div>

<div id="main">

	<div id="main_inner" class="fluid">

		<div id="primaryContent_columnless">

			<div id="columnA_columnless">

                        <#if sessionIsLoggedIn == true>    
                        <small>Logged in as ${sessionUsername}!</small>
                        <#else>
                        <small>Not currently logged in!</small>
                        </#if>    
